import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Item } from 'src/items/entities/item.entity'
import { Order } from './entities/order.entity'
import { User } from 'src/users/entities/user.entity'
import { OrdersController } from './orders.controller'
import { OrdersService } from './orders.service'
import { Address } from 'src/users/entities/address.entity'

@Module({
  imports: [TypeOrmModule.forFeature([Order, Item, User, Address])],
  providers: [OrdersService],
  controllers: [OrdersController],
  exports: [OrdersService, TypeOrmModule]
})
export class OrdersModule {}
